<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:53:"E:\WWW\WWW\shuadan/wstmart/admin\view\renwu\edit.html";i:1543914354;s:47:"E:\WWW\WWW\shuadan/wstmart/admin\view\base.html";i:1543820519;}*/ ?>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>后台管理中心 - <?php echo WSTConf('CONF.mallName'); ?></title>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/> 
<link href="__ADMIN__/js/ligerui/skins/Aqua/css/ligerui-all.css?v=<?php echo $v; ?>" rel="stylesheet" type="text/css" /> 
<link href="__STATIC__/plugins/validator/jquery.validator.css?v=<?php echo $v; ?>" rel="stylesheet">

<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/webuploader/webuploader.css?v=<?php echo $v; ?>" />

<link href="__ADMIN__/css/style.css?v=<?php echo $v; ?>" rel="stylesheet" type="text/css" />   
<script src="__STATIC__/js/jquery.min.js?v=<?php echo $v; ?>"></script>  
<script src="__ADMIN__/js/ligerui/js/ligerui.all.js?v=<?php echo $v; ?>" type="text/javascript"></script> 
<script type='text/javascript' src='__STATIC__/plugins/layer/layer.js?v=<?php echo $v; ?>'></script> 
<script src="__STATIC__/js/common.js?v=<?php echo $v; ?>"></script>
<script>
window.conf = {"ROOT":"__ROOT__","APP":"__APP__","STATIC":"__STATIC__","SUFFIX":"<?php echo config('url_html_suffix'); ?>","GOODS_LOGO":"<?php echo WSTConf('CONF.goodsLogo'); ?>","SHOP_LOGO":"<?php echo WSTConf('CONF.shopLogo'); ?>","MALL_LOGO":"<?php echo WSTConf('CONF.mallLogo'); ?>","USER_LOGO":"<?php echo WSTConf('CONF.userLogo'); ?>",'GRANT':'<?php echo implode(",",session("WST_STAFF.privileges")); ?>'}
</script>
<script src="__ADMIN__/js/common.js?v=<?php echo $v; ?>"></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.js?v=<?php echo $v; ?>"></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/local/zh-CN.js?v=<?php echo $v; ?>"></script>
</head>
<body>

<style>
.goodsCat{display:inline-block;width:150px}
.accreds{display:inline-block;width:150px}
</style>
<div class="l-loading" style="display: block" id="wst-loading"></div>
<form id='editFrom' autocomplete='off'>
<input type='hidden' id='id' class='ipt' value="<?php echo $object['id']; ?>"/>
<table class='wst-form wst-box-top'>
 
  <tr>
     <td colspan='2' class='head-ititle'>基础信息</td>
  </tr>


  <tr>
     <th width='150'>关键词<font color='red'>*</font>：</th>
     <td><input type="text" id='guanjianci' name='guanjianci' class='ipt' value="<?php echo $object['guanjianci']; ?>"  data-rule="关键词: required;" /></td>
  </tr>
  
  <tr>
     <th width='150'>店铺名称<font color='red'>*</font>：</th>
     <td><input type="text" id='dianpu' name='dianpu' class='ipt' value="<?php echo $object['dianpu']; ?>" maxLength='50' data-rule="店铺名称: required;" data-target="#msg_shopSn"/><span class='msg-box' id='msg_shopSn'></span></td>
  </tr>
  <tr>
     <th>店铺链接<font color='red'>*</font>：</th>
     <td><input type="text" id='dianpulianjie' class='ipt' value="<?php echo $object['dianpulianjie']; ?>" maxLength='50' data-rule="店铺链接: required;"/></td>
  </tr>
  <tr>
     <th>宝贝链接<font color='red'>*</font>：</th>
     <td><input type="text" id='baobeilianjie' class='ipt' value="<?php echo $object['baobeilianjie']; ?>" maxLength='20' data-rule="宝贝链接: required;"/></td>
  </tr>
   <tr>
     <th>放单时间<font color='red'>*</font>：</th>
     <td>
        <input type="text" style="margin:0px;vertical-align:baseline;" id="fangdanshijian" name="fangdanshijian"  data-rule="放单时间: required;" class="ipt" maxLength="20"  />
     </td>
  </tr>
  
  <tr>
     <th>时间间隔<font color='red'>*</font>：</th>
     <td><input type="text" id='jiangeshijian' class='ipt' value="<?php echo $object['jiangeshijian']; ?>" data-rule="间隔时间: required;"/></td>
  </tr>
  <tr>
     <th>单量<font color='red'>*</font>：</th>
     <td><input type="text" id='danliang' class='ipt' value="<?php echo $object['danliang']; ?>"  style='' maxLength='50' data-rule="单量: required;"/></td>
  </tr>
  <tr>
     <th>单价<font color='red'>*</font>：</th>
     <td><input type="text" id='danjia' class='ipt' value="<?php echo $object['danjia']; ?>" maxLength='50' data-rule="单价: required;"/></td>
  </tr>
  <tr>
     <th>商家备注<font color='red'></font>：</th>
     <td><textarea id="shangjiabeizhu" class="ipt" style="min-height:100px" placeholder=""><?php echo $object['shangjiabeizhu']; ?></textarea></td>
  </tr>
  <tr>
     <td colspan='2' class='head-ititle'>图片信息</td>
  </tr>
 <tr>
     <th>图片<font color='red'>*</font>：</th>
     <td>
         <div id="preview" >
            <img src="__ROOT__/<?php if($object['tupian']==''): ?><?php echo WSTConf('CONF.shopLogo'); else: ?><?php echo $object['tupian']; endif; ?>"  height="150" />
        </div>
        <div id='adFilePicker' style="margin-left:40px;">图片</div>
        <input type="hidden" id="tupian"  value="<?php echo $object['tupian']; ?>" class="ipt" />
        <span id='uploadMsg'></span>
     </td>
  </tr>
  <tr>
     <td colspan='2' align='center'>
       <input type='button' value='保存' class='btn btn-blue' onclick='javascript:save()'>
       <input type='button' value='返回' class='btn' onclick='javascript:history.go(-1)'>
     </td>
  </tr>
</table>
</form>
<script>
$(function(){
    initEdit({});
    //时间插件
    $("#fangdanshijian").ligerDateEditor({format: "yyyy-MM-dd hh:mm:ss",showTime : true}).setValue("<?php echo $object['fangdanshijian']; ?>");
})

</script>


<script type='text/javascript' src='__STATIC__/plugins/webuploader/webuploader.js?v=<?php echo $v; ?>'></script>
<script src="__ADMIN__/renwu/shops.js?v=<?php echo $v; ?>" type="text/javascript"></script>

<script>
function showImg(opt){
	layer.photos(opt);
}
function showBox(opts){
	return WST.open(opts);
}
</script>
</body>
</html>